﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zeus.Thunder.Core;

namespace SharpTrainer.Linq
{
    class QuantifiersTest : ITestCase
    {
        public void Run()
        {
            var numbers = new int[] { 2, 3, 4, 5, 9 };
            bool hasAThree = numbers.Contains(3);
            bool hasABigNumber = numbers.Any(n => n > 10);

            Console.WriteLine("Contains 3: {0}", hasAThree);
            Console.WriteLine("Has Number>10: {0}", hasABigNumber);

            var numbers2 = numbers.Where(n => n >= 5);
            foreach (var num in numbers2)
                Console.WriteLine(num);
        }
    }
}
